import java.util.Scanner;

public class d3t1 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        String longword=scanner.nextLine();//Hello World Hi
        System.out.println(longword);
        String[] longarr=longword.split(" ");
        for (int i = 0; i < longarr.length; i++) {
            //取出每个单词首字母
            System.out.print(longarr[i].toUpperCase().charAt(0));
        }
    }
}









